<template>
	<view class="pageBox" v-html="explain">
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				from: "",
				type: "",
				explain: "",
			}
		},
		onLoad(option) {
			this.from = option.from;
			this.type = option.type;
			this.getExplain();
			if(option.from == "申请服务中心") {
				uni.setNavigationBarTitle({
					title: "申请服务说明"
				})
			} else if(option.from == "运营中心") {
				uni.setNavigationBarTitle({
					title: "运营中心说明"
				})
			} else if(option.from == "申请运营中心") {
				uni.setNavigationBarTitle({
					title: "运营中心说明"
				})
			} else {
				uni.setNavigationBarTitle({
					title: "服务中心说明"
				})
			}
		},
		methods: {
			getExplain() {
				this.$post({
					module: 'Content',
					interface: 4003,
					data: {
						name: this.type == 1 ? "service_explain" : "operaing_explain",
					}
				}).then(res => {
					// console.log(res)
					this.explain = res.content;
				})
			},
		},
	}
	
</script>

<style scoped lang="scss">
	.pageBox {
		width: 100%;
		min-height: calc(100vh - var(--winidow-top));
		padding: 32rpx;
		/deep/img {
			max-width: 100%;
			height: auto;
		}
	}
</style>